﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Lonewolf.Entity
{
    /// <summary>
    /// 左侧菜单视图模型
    /// </summary>
    public class MenuNavBar
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        ///  图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        ///  是否展开
        /// </summary>
        public bool spread { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 子级菜单集合
        /// </summary>
        public List<MenuNavBar> children { get; set; }

        public string id { get; set; }
    }
    /// <summary>
    /// 子级菜单模型。
    /// </summary>
    public class ChildNavbar
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 递归子集合
        /// </summary>
        public List<ChildNavbar> children { get; set; }
    }
}
